import request from '@/utils/request'

// 查询医生微服务列表
export function listDoctor(query) {
  return request({
    url: '/doctor/doctor/list',
    method: 'get',
    params: query
  })
}

// 查询医生微服务详细
export function getDoctor(id) {
  return request({
    url: '/doctor/doctor/' + id,
    method: 'get'
  })
}

// 新增医生微服务
export function addDoctor(data) {
  return request({
    url: '/doctor/doctor',
    method: 'post',
    data: data
  })
}

// 修改医生微服务
export function updateDoctor(data) {
  return request({
    url: '/doctor/doctor',
    method: 'put',
    data: data
  })
}

// 删除医生微服务
export function delDoctor(id) {
  return request({
    url: '/doctor/doctor/' + id,
    method: 'delete'
  })
}

// 修改医生微服务
export function updateStatus(data) {
  return request({
    url: '/doctor/doctor/uploadById',
    method: 'POST',
    data: data
  })
}

//标签列表
export function listLabel() {
  return request({
    url: '/doctor/label/findLabelList',
    method: 'get'
  })
}
//新增标签
export function addLabel(data) {
  return request({
    url: '/doctor/label/addLabel',
    method: 'post',
    data: data
  })
}

export function delLabel(id) {
  return request({
    url: '/doctor/label/delLabel/' + id,
    method: 'POST'
  })
}

export function selectHospital() {
  return request({
    url: '/doctor/doctor/findHospital',
    method: 'get'
  })
}

export function selectDepart() {
  return request({
    url: '/doctor/doctor/findDepart',
    method: 'get'
  })
}


